/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pkl53.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author HP G42 (RILLA)
 */
@Entity
@Table(name = "opsi_b6r6utama&lain")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "OpsiB6r6utamaLain.findAll", query = "SELECT o FROM OpsiB6r6utamaLain o"),
    @NamedQuery(name = "OpsiB6r6utamaLain.findByB6R6utamalain", query = "SELECT o FROM OpsiB6r6utamaLain o WHERE o.b6R6utamalain = :b6R6utamalain"),
    @NamedQuery(name = "OpsiB6r6utamaLain.findByValue", query = "SELECT o FROM OpsiB6r6utamaLain o WHERE o.value = :value")})
public class OpsiB6r6utamaLain implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "B6R6utama&lain")
    private String b6R6utamalain;
    @Basic(optional = false)
    @Column(name = "value")
    private String value;

    public OpsiB6r6utamaLain() {
    }

    public OpsiB6r6utamaLain(String b6R6utamalain) {
        this.b6R6utamalain = b6R6utamalain;
    }

    public OpsiB6r6utamaLain(String b6R6utamalain, String value) {
        this.b6R6utamalain = b6R6utamalain;
        this.value = value;
    }

    public String getB6R6utamalain() {
        return b6R6utamalain;
    }

    public void setB6R6utamalain(String b6R6utamalain) {
        this.b6R6utamalain = b6R6utamalain;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (b6R6utamalain != null ? b6R6utamalain.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof OpsiB6r6utamaLain)) {
            return false;
        }
        OpsiB6r6utamaLain other = (OpsiB6r6utamaLain) object;
        if ((this.b6R6utamalain == null && other.b6R6utamalain != null) || (this.b6R6utamalain != null && !this.b6R6utamalain.equals(other.b6R6utamalain))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "pkl53.model.OpsiB6r6utamaLain[ b6R6utamalain=" + b6R6utamalain + " ]";
    }
    
}
